import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
import loan from './modules/loan' // 导入loan // 将loan.js的数据添加到这里
import invest from './modules/invest' // 将invest.js的数据添加到这里
import card from './modules/card' // 将card.js的数据添加到这里
import assetManage from './modules/assetManage' // assetManage.js的数据添加到这里
import message from './modules/message' // message.js的数据添加到这里
import transaction from './modules/transaction' // transaction.js的数据添加到这里

import permission from './modules/permission' // permission.js的数据添加到这里


Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user,
    loan, // 初始化loan
    invest, // 初始化invest
    card, // 初始化card
    assetManage, //初始化recharge
    message, //初始化message
    transaction, //初始化transaction,

    permission
  },
  getters
})

export default store
